from flask import Blueprint
from  . import views

user_bp = Blueprint('user',__name__,url_prefix='/user')

user_bp.add_url_rule('/login/',view_func=views.LoginView.as_view(name='user-login'))
user_bp.add_url_rule('/role/',view_func=views.RoleView.as_view(name='user-role'))
user_bp.add_url_rule('/register/',view_func=views.RegisterView.as_view('user-register'))
user_bp.add_url_rule('/bound/role/',view_func=views.UserView.as_view('user-bound-role'))
user_bp.add_url_rule('/test/log/',view_func=views.TestLog.as_view('user-test-log'))
user_bp.add_url_rule('/test/exception/',view_func=views.TestException.as_view('user-test-exception'))
user_bp.add_url_rule('/test/thread/',view_func=views.ThreadUserModelView.as_view('user-thread-test'))